package com.itheima.health.dao;

import com.github.pagehelper.Page;
=======
>>>>>>> adc48831cde55357ef0420c5deac2882fa85ad7a
import com.itheima.health.pojo.Permission;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository // 加和不加没有影响
public interface PermissionDao {
    //分页
    Page<Permission> findPage(String queryString);

    List<Permission> findPermissionsByRoleId(Integer roleId);
    //添加
    void add(Permission permission);
    //删除
    void deleteById(Integer id);
    //回显
    Permission findById(Integer id);
    //修改
    void edit(Permission permission);

}
}
